package bean.life;

import org.springframework.beans.factory.BeanNameAware;

/**
 * @Author com.alibaba.lizhen
 * @Date 2021/3/27 8:35 下午
 * @Version 1.0
 * @Description
 */
public class AutoWiredBean implements BeanNameAware {

	public AutoWiredBean() {
		System.out.println("\t\tAutoWiredBean 实例化了");
	}

	public void test() {
		System.out.println("test");
	}

	private String beanName;

	@Override
	public void setBeanName(String name) {
		System.out.println(" ------- AutoWiredBean---------------->>>>>>>>>beanName aware");
	}
}
